package com.asiainfo.ssm.execute.service.impl;

import java.rmi.RemoteException;
import java.util.Date;

import com.ai.appframe2.service.ServiceFactory;
import com.asiainfo.ssm.execute.dao.interfaces.IExecOrderLogDAO;
import com.asiainfo.ssm.execute.ivalues.IBOExecOrderLogValue;
import com.asiainfo.ssm.execute.service.interfaces.IExecOrderLogSV;

public class ExecOrderLogSVImpl implements IExecOrderLogSV {

	@Override
	public long saveExecOrderLog(IBOExecOrderLogValue execOrderLogValue)
			throws Exception, RemoteException {
		IExecOrderLogDAO sv = (IExecOrderLogDAO) ServiceFactory.getService(IExecOrderLogDAO.class);
		return sv.saveExecOrderLog(execOrderLogValue);
	}

	@Override
	public void saveExecOrderLog(IBOExecOrderLogValue[] execOrderLogValues)
			throws Exception, RemoteException {
		IExecOrderLogDAO sv = (IExecOrderLogDAO) ServiceFactory.getService(IExecOrderLogDAO.class);
		sv.saveExecOrderLog(execOrderLogValues);
	}
	
	public int getExecOrderLogCountByCond(long ordId, String actId, String taskId,
			long criticalPointId, String billId, int execType, long channelId,
			int pluginType, long pluginId, int execState, int respState,
			Date beginCreateDate,Date endCreateDate, Date doneDate, String regionId,
			Date effectiveDate, Date expireDate) throws Exception,
			RemoteException{
		IExecOrderLogDAO sv = (IExecOrderLogDAO) ServiceFactory.getService(IExecOrderLogDAO.class);
		return sv.getExecOrderLogCountByCond(ordId, actId, taskId,
				criticalPointId, billId, execType, channelId,
				pluginType, pluginId, execState, respState,
				beginCreateDate, endCreateDate, doneDate, regionId,
				effectiveDate, expireDate);
	}

}
